CONTENTS | INDEX | PREV | NEXT
EXAMPLE WEDGE COMMAND LINES
Note - by default, when LVO generates a wedge command line for you,
it will tell wedge you want to see the result (opt r) and also that
you want to see what all address register arguments and a7 point to.
But dos.library often uses a data register such as d1 to pass name
arguments. You probably want to see such name arguments (and not
just their addresses), so after generating a wedgeline with LVO,
you may wish to edit the 3rd hex parameter (the show me what these
registers point at parameter) to set the bit for the data register
in which the name is passed. For example, the Open and Lock examples
below, as generated by LVO, were:
run wedge dos 0xffe2 0x8006 0x8000 opt r "c=Open(name,accessMode)(d1/d2)"
run wedge dos 0xffac 0x8006 0x8000 opt r "c=Lock(name,type)(d1/d2)"
^bits for d3 d2 d1 d0
But we have changed these by setting the bit for d1 in the third
hex parameter, so wedge will show us the data pointed at by d1:
run wedge dos 0xffe2 0x8006 0x8002 opt r "c=Open(name,accessMode)(d1/d2)"
run wedge dos 0xffac 0x8006 0x8002 opt r "c=Lock(name,type)(d1/d2)"
The following examples were all generated with LVO, but we edited
the Open and Lock examples as described previously.
DOS Examples:
run wedge dos 0xffe2 0x8006 0x8002 opt r "c=Open(name,accessMode)(d1/d2)"
run wedge dos 0xffdc 0x8002 0x8000 opt r "c=Close(file)(d1)"
run wedge dos 0xffac 0x8006 0x8002 opt r "c=Lock(name,type)(d1/d2)"
run wedge dos 0xffa6 0x8002 0x8000 opt r "c=UnLock(lock)(d1)"
run wedge dos 0xffa0 0x8002 0x8000 opt r "c=DupLock(lock)(d1)"
Memory Examples:
run wedge exec 0xff3a 0x8003 0x8000 opt r "c=AllocMem(byteSize,requirements)(d0/d1)"
run wedge exec 0xff2e 0x8201 0x8200 opt r "c=FreeMem(memoryBlock,byteSize)(a1,d0)"
run wedge exec 0xfd54 0x8003 0x8000 opt r "c=AllocVec(byteSize,requirements)(d0/d1)"
run wedge exec 0xfd4e 0x8200 0x8200 opt r "c=FreeVec(memoryBlock)(a1)"
Other Exec Examples:
run wedge exec 0xfe44 0x8303 0x8300 opt r "c=OpenDevice(devName,unit,ioRequest,flags)(a0,d0/a1,d1)"
run wedge exec 0xfe3e 0x8200 0x8200 opt r "c=CloseDevice(ioRequest)(a1)"
run wedge exec 0xfdd8 0x8201 0x8200 opt r "c=OpenLibrary(libName,version)(a1,d0)"
run wedge exec 0xfe62 0x8200 0x8200 opt r "c=CloseLibrary(library)(a1)"
Intuition Examples:
run wedge intuition 0xff34 0x8100 0x8100 opt r "c=OpenWindow(newWindow)(a0)"
run wedge intuition 0xffb8 0x8100 0x8100 opt r "c=CloseWindow(window)(a0)"
run wedge intuition 0xff3a 0x8100 0x8100 opt r "c=OpenScreen(newScreen)(a0)"
run wedge intuition 0xffbe 0x8100 0x8100 opt r "c=CloseScreen(screen)(a0)"
run wedge intuition 0xfda2 0x8300 0x8300 opt r "c=OpenWindowTagList(newWindow,tagList)(a0/a1)"
run wedge intuition 0xfd9c 0x8300 0x8300 opt r "c=OpenScreenTagList(newScreen,tagList)(a0/a1)"
Icon examples:
run wedge icon 0xffb2 0x8100 0x8100 opt r "c=GetDiskObject(name)(a0)"
run wedge icon 0xffa6 0x8100 0x8100 opt r "c=FreeDiskObject(diskobj)(a0)"
run wedge icon 0xffac 0x8300 0x8300 opt r "c=PutDiskObject(name,diskobj)(a0/a1)"
run wedge icon 0xffa0 0x8300 0x8300 opt r "c=FindToolType(toolTypeArray,typeName)(a0/a1)"